package sanshi.contect.state.exer;

/**
 * 状态模式的练习
 */
public class Car extends CarState {
    CarState state;

    @Override
    public void openCar() {
        state.openCar();
    }

    @Override
    public void closeCar() {
        state.closeCar();
    }

    @Override
    public void runningCar() {
        state.runningCar();
    }

    @Override
    public void stopCar() {
        state.stopCar();
    }
}
